* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    background-color: #f5f5f5;
    color: #333;
}

.container {
    /* max-width: 800px; */
    margin: 2rem auto;
    padding: 2rem;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.container .wrap{
    display: flex;
    align-items: center;
    justify-content: space-around;
}
.container .wrap >div{
    width: 48%;
    height: 80vh;
}
h1 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 2rem;
}

h2 {
    color: #34495e;
    margin-bottom: 1rem;
}

.lottery-section {
    text-align: center;
    margin-bottom: 2rem;
}

.lottery-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
    align-items: center;
}

.custom-numbers {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.lottery-animation {
    /* height: 100px; */
    margin: 1rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    font-weight: bold;
    color: #3498db;
}

.primary-button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.primary-button:hover {
    background-color: #2980b9;
}

.secondary-button {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.secondary-button:hover {
    background-color: #c0392b;
}

.result-section {
    margin-top: 1rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 5px;
}

.records-section {
    margin-bottom: 2rem;
}

.records-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 1rem;
}

#pageInfo {
    font-weight: bold;
    color: #2c3e50;
}

.batch-selector {
    display: flex;
    align-items: center;
}

.batch-select {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    min-width: 200px;
    background-color: white;
}

.records-list {
    max-height: 500px;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 1rem;
}

.record-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    border-bottom: 1px solid #eee;
}

.record-item:last-child {
    border-bottom: none;
}

.delete-form {
    display: flex;
    gap: 1rem;
    align-items: center;
}

input[type="number"] {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    width: 200px;
}



.winning-number:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 14px;
    white-space: nowrap;
    z-index: 1000;
    margin-bottom: 5px;
}

.winning-number:hover::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.8);
    margin-bottom: -5px;
    z-index: 1000;
}

.error-message {
    color: #e74c3c;
    margin-top: 0.5rem;
}

.success-message {
    color: #2ecc71;
    margin-top: 0.5rem;
}

@keyframes numberRoll {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    50% {
        transform: translateY(-20px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.rolling-number {
    animation: numberRoll 0.5s ease-in-out;
}

.number-input {
    display: flex;
    align-items: center;
}

.number-input input {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    width: 120px;
    font-size: 1rem;
}

.stats-section {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 2rem;
    text-align: center;
}

.stats-info {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    color: #2c3e50;
}

.current-draw-info {
    font-size: 1.2rem;
    color: #3498db;
    font-weight: bold;
}

/* 抽奖动画样式 */
.animation-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.rolling-numbers {
    min-height: 60px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 10px;
}

.rolling-number {
    font-size: 24px;
    font-weight: bold;
    color: #666;
    padding: 5px 10px;
    background: #f0f0f0;
    border-radius: 5px;
    animation: numberRoll 0.5s ease-in-out;
}

.selected-numbers {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 10px;
}
.winning-number {
    

}
.winning-number {
    position: relative;
    cursor: help;
    font-size: 20px;
    font-weight: bold;
    color: #e74c3c;
    padding: 8px 15px;
    display: inline-block;
    /* background-color: #2ecc71; */
    margin: 0.2rem;
    background: #fff;
    border: 2px solid #e74c3c;
    border-radius: 8px;
    animation: numberAppear 0.5s ease-out;
}

@keyframes numberRoll {
    0% {
        transform: translateY(20px);
        opacity: 0;
    }
    50% {
        transform: translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateY(-20px);
        opacity: 0;
    }
}

@keyframes numberAppear {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
} 
